import App from './App'
import uvUI from '@/uni_modules/uv-ui-tools'
import { Request } from '@/utils/request/index'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.use(uvUI);
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
Request(app)
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(uvUI);
  Request(app)
  return {
    app
  }
}
// #endif

if (wx.cloud) {
  wx.cloud.init({
    env: 'cloud1-0g395u88659d19b8', // 使用你的小程序云环境ID
    traceUser: true
  });
} else {
  console.error("云开发环境未初始化");
}